Important Interview Question: How to Print count of duplicate characters from String